package o;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView.a;
import androidx.recyclerview.widget.RecyclerView.s;
import com.huawei.appmarket.component.feedback.activity.FeedbackListDetailResponse.UserFeedBackEntity;
import java.util.List;
import o.dfj.b;

public class dfh extends a<d> {
    private Context ˊ;
    private List<UserFeedBackEntity> ॱ;

    public class d extends s {
        private TextView ʻॱ;
        private ImageView ʾ;
        private TextView ॱˋ;
        private TextView ॱᐝ;
        final /* synthetic */ dfh ᐝॱ;

        public d(dfh o_dfh, View view) {
            this.ᐝॱ = o_dfh;
            super(view);
            this.ॱˋ = (TextView) view.findViewById(dfj.a.ʽॱ);
            this.ॱᐝ = (TextView) view.findViewById(dfj.a.ॱˎ);
            this.ʻॱ = (TextView) view.findViewById(dfj.a.ˋ);
            this.ʾ = (ImageView) view.findViewById(dfj.a.ॱ);
        }
    }

    public /* synthetic */ s ˎ(ViewGroup viewGroup, int i) {
        return ॱ(viewGroup, i);
    }

    public /* synthetic */ void ॱ(s sVar, int i) {
        ˏ((d) sVar, i);
    }

    public dfh(Context context, List<UserFeedBackEntity> list) {
        this.ˊ = context;
        this.ॱ = list;
    }

    public d ॱ(ViewGroup viewGroup, int i) {
        return new d(this, LayoutInflater.from(this.ˊ).inflate(b.ˊ, viewGroup, false));
    }

    public void ˏ(d dVar, int i) {
        dVar.ॱˋ.setText(dfx.ॱ(((UserFeedBackEntity) this.ॱ.get(i)).ˎ()));
        dVar.ॱᐝ.setText(((UserFeedBackEntity) this.ॱ.get(i)).ˊ());
        if (dof.ॱ(((UserFeedBackEntity) this.ॱ.get(i)).ॱ())) {
            dVar.ʾ.setVisibility(8);
            dVar.ʻॱ.setVisibility(8);
            return;
        }
        dVar.ʾ.setVisibility(0);
        dVar.ʻॱ.setVisibility(0);
        dVar.ʻॱ.setText(((UserFeedBackEntity) this.ॱ.get(i)).ॱ());
    }

    public int ˏ() {
        if (this.ॱ == null) {
            return 0;
        }
        return this.ॱ.size();
    }
}
